package ynu.edu.merchant.dto;

import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商家评价DTO
 */
@Data
public class MerchantReviewDTO {

    private Long id;

    @NotNull(message = "商家ID不能为空")
    private Long merchantId;

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @NotNull(message = "评分不能为空")
    @DecimalMin(value = "1.0", message = "评分最低为1分")
    @DecimalMax(value = "5.0", message = "评分最高为5分")
    private BigDecimal rating;

    private String content;

    private String images;

    private String reply;

    private java.time.LocalDateTime replyTime;

    private Integer status;
} 